package Day04;

import java.util.Scanner;

public class ScoreLevel {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个大于0小于等于100的成绩:");
        Double score = scan.nextDouble();

        if (score<0 || score>100) {
            System.out.println("成绩不合法");
        }else if (score >= 90){
            System.out.println("您的成绩是："+score+"属于A--优秀");
        }else if (score>=80 && score<90){
            System.out.println("您的成绩是："+score+"属于B--良好");
        }else if (score>=60 && score<80){
            System.out.println("您的成绩是："+score+"属于C--及格");
        }else if (score<60){
            System.out.println("您的成绩是："+score+"属于D--不及格");
        }


    }
}
